//
//  http_user.h
//  XV
//
//  Created by apple on 2019/03/11.
//  Copyright © 2019 XV. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HttpTool.h"
#import "UserInfoModel.h"


NS_ASSUME_NONNULL_BEGIN

@interface http_user : NSObject

//用户注册
+(void)simple_register:(NSString*)nick_name phone:(NSString*)phone verify_code:(NSString*)verify_code invite_code:(NSString*)invite_code success:(SuccessData)ReqSuccess failure:(ErrorData)ReqFailure;

//用户登录
+(void)login:(NSString*)username password:(NSString*)password success:(SuccessData)ReqSuccess failure:(ErrorData)ReqFailure;

//验证码【register：注册；login：验证码登录】
+(void)sendCode:(NSString*)phone type:(NSString*)type success:(SuccessData)ReqSuccess failure:(ErrorData)ReqFailure;

//手机验证码登录send_code=》发送验证码 login=》校验验证码并登陆
+(void)full_register:(NSString*)mobile type:(NSString*)type code:(NSString*)code success:(SuccessData)ReqSuccess failure:(ErrorData)ReqFailure;

//退出
+(void)logout:(NSString*)user_id success:(SuccessData)ReqSuccess failure:(ErrorData)ReqFailure;

@end

NS_ASSUME_NONNULL_END
